<template>
	<scroll-view scroll-y="true">
	<view class="container">
		<!-- 头部轮播 -->
		<view class="carousel-section">
			<view class="carousel-section">
				<view class="carouseltop">
					<image src="/static/index_top_bg.png" />
				</view>
			</view>
		</view>
		<view class="function">
			<view v-for="(item, index) in functions" :key="index"
				style="display: flex;flex-direction: column;height: 150rpx;flex: 1;" @click="goto(item)">
				<view style="flex: 1;height: 84rpx;">
					<image :src="item.icon" style="width: 84rpx;height: 84rpx;margin-left: 17rpx;"></image>
				</view>
				<view style="flex: 1;margin-top: 5rpx;" class="functionDesc"><text>{{item.name}}</text></view>
			</view>
		</view>
		<view class="cut"></view>
		<view class="third">
			<view class="rechargeAndHexiao">
				<image src="/static/index/chongzhi.png" @click="toChuzhi"></image>
			</view>
			<view class="rechargeAndHexiao">
				<image src="/static/index/douyin-hexiao.png" @click="douyinHexiao"></image>
			</view>
		</view>
		<view class="joinus">
			<swiper class="carousel" circular @change="swiperChange" autoplay="true" interval="3000">
				<swiper-item v-for="(item, index) in images" :key="index" class="carousel-item"
					@click="navTo(item.url,item.type)">
					<image :src="item.picUrl" />
				</swiper-item>
			</swiper>
		</view>
		<view class="searchindex">
			<view style="height: 64rpx;line-height: 64rpx;padding-right: 30rpx;" @click="toSearch()">
				<text class="iconfont icon-positioning" style="font-size: 32rpx;color: #0DA944;margin-right: 20rpx;margin-left: 18rpx;"></text>
				<text style="font-size: 32rpx;font-family: Source Han Sans CN;font-weight: 400;color: #1A1A1A;width: 70rpx;">全部</text>
				<text class="searchplaceholder">
					搜索门店查询
				</text>
				<text class="iconfont icon-search" style="font-size: 24rpx;color: #9A9A9A;float: right;"></text>
			</view>
		</view>
		<view class="video-list">
			<!--  v-html="brightenKeyword(item.name,query)" -->
			<view class="video-content" v-for="(item, ind) in mendian" :key="ind"
				@click="goDevice(item.id,item.name,item.distance)">
				<view class="storelist">
					<image :src="item.img1"></image>
				</view>
				<!-- 门店列表右部开始 -->
				<view class="video-describe">
					<view class="video-tit">
						<text>{{item.name}}</text>
					</view>
					<view style="display: flex;width: 210rpx;">
						<view class="online" v-if="item.onlineStatus=='正在营业'">
							<text>正在营业</text>
						</view>
						<view class="renovation" v-if="item.onlineStatus=='正在装修'">
							<text>正在装修</text>
						</view>
						<view class="renovation" v-if="item.onlineStatus=='暂未营业'">
							<text>暂未营业</text>
						</view>
						<view class="tag">
							<text>接收预订</text>
						</view>
					</view>
					<view style="height: 28rpx;"></view>
					<!-- 地址时间开始 -->
					<view class="video-reader">
						<!-- 时间 -->
						<text class="iconfont" style="font-size: 24rpx;color: #828282;">&#xe603;</text>
						<text class="timeoraddress">营业时间:{{item.onlineTime}}</text>
					</view>
					<view class="video-reader">
						<!-- 地址 -->
						<text class="iconfont" style="font-size: 24rpx;color: #828282;">&#x10132;</text>
						<text class="timeoraddress">{{item.addressLat}}</text>
					</view>
				</view>
				<view class="right">
					<view class="righticon">
						<text class="iconfont"
							@click.stop="toAddress(item.addressLat,item.name,item.longitude,item.latitude)">&#xe632;</text>
						<text class="iconfont" style="margin-left: 20rpx;"
							@click.stop="call(item.servicePhone)">&#xe60d;</text>
					</view>
					<view class="distance">
						<text>{{item.distance}}km</text>
					</view>
				</view>
			</view>
			<view style="height: 50rpx;"></view>
			<uni-popup ref="doorpopup" :mask-click="false" type="center">
				<view class="unipopup">
					<image src="/static/icon_home_menu_1.png"></image>
					<view class="buttomopendoor1" @click="openDamen()"><text>开启大门</text></view>
					<view class="buttomopendoor2" @click="openBoxiangDoor()"><text>开包厢门</text></view>
				</view>
			</uni-popup>
			<uni-popup ref="door" :mask-click="false" type="center">
				<view class="unipopup">
					<image src="/static/icon_success.png"></image>
					<text class="successtxt">{{opendoortxt}}</text>
					<text class="welcome">欢迎您的到来</text>
					<view class="buttomafrim" @click="closeSuccess()"><text>确定</text></view>
				</view>
			</uni-popup>
			<uni-popup ref="tishi" :mask-click="false" type="center">
				<view class="unipopup">
					<image src="/static/icon_prompt.png"></image>
					<text class="successtxt">温馨提示</text>
					<text class="welcome">{{tishitxt}}</text>
					<view class="buttomafrim" @click="closeTishi()"><text>确定</text></view>
				</view>
			</uni-popup>
		</view>
		<view class='copyright'><text>本系统由<text style="font-family: 'Courier New', Courier, monospace;font-weight: 600;">喜番自助竞技空间</text>提供技术支持</text></view>
	</view>
	</scroll-view>
</template>

<script>
	import qqmapsdk from '@/common/qqmap-wx-jssdk';
	import uniPopup from '@/components/uni-popup/uni-popup.vue'
	const QQMapWX = new qqmapsdk({
		key: 'T3CBZ-TNG3U-52FVX-GMNKK-XCN7Z-WVBWY' //你的key
	});
	import Api from '@/common/api';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	import {
		formatDate
	} from '@/common/date';
	export default {
		components: {
			uniPopup
		},
		computed: {
			...mapState(['hasLogin', 'userInfo'])
		},
		data() {
			return {
				city: '全部',
				swiperCurrent: 0,
				swiperLength: 0,
				banners: [],
				mendian: [],
				tishitxt:'',
				opendoortxt: '',
				images: [{
						picUrl: '/static/index/zhaoshang.png',
						url: '',
						type: 1
					},
					{
						picUrl: '/static/index/zhaoshang2.png',
						url: '',
						type: 1
					}
				],
				functions: [{
						name: '开启大门',
						icon: '/static/index/kaidamen.png',
						val: 0
					},
					{
						name: '开包厢门',
						icon: '/static/index/kaibaoxiang.png',
						val: 0
					},
					{  
						name: '立即续费',
						icon: '/static/index/xufei.png',
						val: 0
					},
					{
						name: '美团核销',
						icon: '/static/index/meituan-hexiao.png',
						val: 0
					}
				],
				query: ''
			};
		},
		onShow() {
			this.getLocation();
		},
		onLoad() {
			this.getAllStore();
		},
		filters: {},
		// async onLoad(options) {
		// 	// this.$refs.fab.open();
		// 	this.loadData();
		// },
		onShareAppMessage(res) {
			if (!this.hasLogin) {
				uni.redirectTo({
					url: '/pages/public/login'
				});
				return false;
			}
			var that = this;
			let memberId = that.userInfo.userInfo.id;
			// 设置菜单中的转发按钮触发转发事件时的转发内容
			var shareObj = {
				title: "喜番自助共享空间", // 默认是小程序的名称(可以写slogan等)
				path: '/pages/index/index?fromMemberId=' + memberId, // 默认是当前页面，必须是以‘/’开头的完整路径
				imageUrl: '', //自定义图片路径，可以是本地文件路径、代码包文件路径或者网络图片路径，支持PNG及JPG，不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
				success: function(res) {
					// 转发成功之后的回调
					if (res.errMsg == 'shareAppMessage:ok') {
						that.$core.msg("分享成功.");
					}
				},
				fail: function() {
					// 转发失败之后的回调
					if (res.errMsg == 'shareAppMessage:fail cancel') {
						// 用户取消转发
						that.$core.msg("取消分享.");
					} else if (res.errMsg == 'shareAppMessage:fail') {
						// 转发失败，其中 detail message 为详细失败信息
						that.$core.msg("分享失败,请稍后再试.");
					}
				},
				complete: function() {
					// 转发结束之后的回调（转发成不成功都会执行）
				}
			}
			return shareObj
		},
		methods: {
			...mapMutations(['login', 'logout']),
			async loadData() {
				let that = this;
				let data = await Api.apiCall('get', Api.qsg.indexBanner, {});
				if (data) {
					that.banners = data;
					that.swiperLength = that.banners.length;
				}
			},
			closeSuccess() {
				this.$refs.door.close()
			},
			closeTishi() {
				this.$refs.tishi.close()
			},
			navTo(url, type) {
				if (type == 0) {
					if (!this.hasLogin) {
						uni.showModal({
							title: '提示',
							content: '请先授权登录.',
							success: function(res) {
								if (res.confirm) {
									uni.redirectTo({
										url: '/pages/public/login'
									});
									return;
								}
							}
						});
					} else {
						uni.navigateTo({
							url: '/pages/store/storeList?type=chongzhi'
						})
					}
				} else {
					uni.navigateTo({
						url: '/pages/jiameng/jiameng'
					})
				}
			},
			toZhaoshang() {
				uni.navigateTo({
					url: '/pages/jiameng/jiameng'
				})
			},
			onInput(e) {
				let query = e.detail.value;
				this.getStoreByQuery(query);
			},
			async getStoreByQuery(text) {
				let params = {
					longitude: uni.getStorageSync('longitude'),
					latitude: uni.getStorageSync('latitude'),
					storeName: text
				}
				if (typeof uni.getStorageSync('longitude') == 'undefined') {
					params = {}
				}
				let result = await Api.apiCall('get', Api.qsg.getAllStore, params);
				if (result) {
					this.mendian = result;
				}
			},
			goto(item) {
				if (!this.hasLogin) {
					uni.navigateTo({
						url: '/pages/public/login'
					})
					return;
				}
				if (item.name == '美团核销') {
					uni.navigateTo({
						url: '/pages/meituan/hexiao'
					})
				}
				if(item.name=='开包厢门'){
					this.openBoxiangDoor();
				}
				if(item.name=='开启大门'){
					this.openDamen();
				}
				if (item.name == '立即续费') {
					uni.switchTab({
						url: '/pages/order/coachOrder'
					})
				}
			},
			async openBoxiangDoor() {
				let that = this;
				let data = await Api.apiCall('get', Api.qsg.openBaoxiang, {});
				if (data) {
					if (data == 1) {
						that.tishitxt = '您还没有订单可开启包厢门'
						that.close();
						that.openTishi();
					} else {
						that.close();
						that.opendoortxt = '包厢门已开启';
						that.openDoorSuccess();
					}

				}
			},
			close() {
				this.$refs.doorpopup.close()
			},
			async openDamen() {
				let data = await Api.apiCall('get', Api.qsg.openDamen, {});
				if (data) {
					let that = this;
					if (data == 1) {
						that.tishitxt = '您还没有订单可开启大门'
						that.close();
						that.openTishi();
					} else {
						that.close();
						that.opendoortxt = '大门已开启';
						that.openDoorSuccess();
					}
				}
			},
			openDoorSuccess() {
				this.$refs.door.open('center')
			},
			openTishi() {
				this.$refs.tishi.open('center')
			},
			douyinHexiao() {
				let url = '/pages/douyin/hexiao';
				if (!this.hasLogin) {
					url = '/pages/public/login';
					return;
				}
				uni.navigateTo({
					url: url
				})
			},
			goDevice(id, name, distance) {
				if (this.type == 'chongzhi') {
					uni.navigateTo({
						url: '/pages/money/recharge?storeId=' + id
					})
				} else if (this.type == 'duihuan') {
					let params = {
						id: id,
						name: name
					}
					uni.$emit('store', params);
					uni.navigateBack({
						delta: 1
					})
				} else {
					uni.navigateTo({
						url: '/pages/meallist/selectRoom?storeId=' + id + '&distance=' + distance
					})
				}
			},
			toStore() {
				uni.navigateTo({
					url: '/pages/store/storeList'
				})
			},
			toSearch() {
				uni.navigateTo({
					url: '/pages/store/storeList'
				})
			},
			//轮播图切换修改背景色
			swiperChange(e) {
				const index = e.detail.current;
				this.swiperCurrent = index;
			},
			// 定位授权
			getLocation() {
				let that = this;
				// 1、判断手机定位服务【GPS】 是否授权
				uni.getSystemInfo({
					success(res) {
						let locationEnabled = res.locationEnabled; //判断手机定位服务是否开启
						let locationAuthorized = res.locationAuthorized; //判断定位服务是否允许微信授权
						if (locationEnabled == false || locationAuthorized == false) {
							//手机定位服务（GPS）未授权
							uni.showToast({
								title: "请打开手机GPS",
								icon: "none",
							});
						} else {
							that.getLocationInfo();
							//手机定位服务（GPS）已授权
							// 2、判断微信小程序是否授权位置信息
							// 微信小程序已授权位置信息
							// uni.authorize({
							// 	//授权请求窗口
							// 	scope: "scope.userLocation", //授权的类型
							// 	success: (res) => {
							// 		that.getLocationInfo();
							// 	},
							// 	fail: (err) => {
							// 		err = err["errMsg"];
							// 		uni
							// 			.showModal({
							// 				content: "需要授权位置信息",
							// 				confirmText: "确认授权",
							// 			})
							// 			.then((res) => {
							// 				if (res[1]["confirm"]) {
							// 					uni.openSetting({
							// 						success: (res) => {
							// 							if (res.authSetting[
							// 									"scope.userLocation"
							// 								]) {
							// 								// 授权成功
							// 								uni.showToast({
							// 									title: "授权成功",
							// 									icon: "none",
							// 								});
							// 								that.getLocationInfo();
							// 							} else {
							// 								// 未授权
							// 								uni.showToast({
							// 									title: "授权失败,请重新授权",
							// 									icon: "none",
							// 								});
							// 								uni.showModal({
							// 									title: "授权",
							// 									content: "获取授权" +
							// 										authouName +
							// 										"失败,是否前往授权设置？",
							// 									success: function(
							// 										result
							// 									) {
							// 										if (result
							// 											.confirm
							// 										) {
							// 											uni
							// 												.openSetting();
							// 										}
							// 									},
							// 									fail: function() {
							// 										uni.showToast({
							// 											title: "系统错误！",
							// 											icon: "none",
							// 										});
							// 									},
							// 								});
							// 							}
							// 						},
							// 					});
							// 				}
							// 				if (res[1]["cancel"]) {
							// 					// 取消授权
							// 					uni.showToast({
							// 						title: "你拒绝了授权，无法获得周边信息",
							// 						icon: "none",
							// 					});
							// 				}
							// 			});
							// 	},
							// 	complete(res) {},
							// });
						}
					},
				});
			},
			getLocationInfo() {
				let that = this;
				uni.getLocation({
					type: 'gcj02',
					success(res) {
						uni.setStorageSync('longitude', res.longitude);
						uni.setStorageSync('latitude', res.latitude);
						that.getAllStore();
					},
					fail: function(res) {}
				});
			},
			toAddress(address,name,longitude,latitude){
			//此处item是 你获取到的当前点击的那一条数据  方法里面需要用到 名称  地址 经纬度
					uni.openLocation({
			            latitude: Number(latitude),  //目标纬度
			            longitude: Number(longitude),  //目标经度
			            name: name, //名称
			            address: address, //地址
			            scale: 28
			          });
			},
			call(mobile) {
				if (typeof(mobile) == 'undefined' || mobile == '') {

				} else {
					uni.makePhoneCall({
						phoneNumber: mobile,
						success: function() {},
						fail() {}
					})
				}
			},
			toChuzhi() {
				if (!this.hasLogin) {
					uni.showModal({
						title: '提示',
						content: '请先授权登录.',
						success: function(res) {
							if (res.confirm) {
								uni.redirectTo({
									url: '/pages/public/login'
								});
							} else if (res.cancel) {

							}
						}
					});
				} else {
					uni.navigateTo({
						url: '/pages/store/storeList?type=chongzhi'
					})
				}
			},
			async getAllStore() {
				let params = {
					longitude: uni.getStorageSync('longitude'),
					latitude: uni.getStorageSync('latitude')
				}
				console.log(params)
				if (typeof uni.getStorageSync('longitude') == 'undefined') {
					params = {}
				}
				// params['groupId'] = 1;
				let result = await Api.apiCall('get', Api.qsg.getAllStore, params);
				if (result) {
					console.log(result)
					this.mendian = result;
				}
			},
		}
	};
</script>
<style lang="scss">
	.cut {
		height: 10rpx;
		width: 100%;
		background-color: #ececec;
	}
	
	.searchindex{
		width: 686rpx;
		height: 64rpx;
		background: #FFFFFF;
		border: 1px solid #E8E8E8;
		box-shadow: 0rpx 0rpx 21rpx 3rpx rgba(0,0,0,0.1);
		border-radius: 32rpx;
		margin-top: 20rpx;
		margin-left: 30rpx;
		margin-right: 20rpx;
		// position: absolute;
		// top: 500rpx;
		// left: 32rpx;
	}

	.joinus {
		height: 212rpx;
		background-color: #F7F7F7;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.carousel-section {
		position: relative;
		// padding-top: 10px;
	}

	.rechargeAndHexiao {
		flex: 1;
		width: 100rpx;

		image {
			height: 120rpx;
			width: 350rpx;
		}
	}

	.third {
		display: flex;
		height: 140rpx;
		padding-left: 18rpx;
		padding-top: 8rpx;
	}

	.carouseltop {
		width: 100%;
		height: 418rpx;

		.carousel-item {
			width: 100%;
			height: 100%;
			// padding: 0 28upx;
			overflow: hidden;
		}

		image {
			width: 100%;
			height: 100%;
			// border-radius: 10upx;
		}
	}

	.carousel {
		width: 100%;
		height: 212rpx;

		.carousel-item {
			width: 100%;
			height: 100%;
			// padding: 0 28upx;
			overflow: hidden;
		}

		image {
			width: 100%;
			height: 100%;
			// border-radius: 10upx;
		}
	}

	.function {
		height: 184rpx;
		width: 100%;
		display: flex;
		padding-left: 50rpx;
		padding-top: 35rpx;
	}

	/* 搜索框 */
	.search-ico-1 {
		width: 40upx;
		height: 40upx;
		float: right;
	}

	.search-text {
		font-size: 14px;
		background-color: #FFFFFF;
		height: 50upx;
		width: 500rpx;
		border: 2rpx solid #127202;
		border-radius: 40rpx;
		padding-left: 50rpx;
	}
	
	.searchplaceholder{
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #9A9A9A;
		margin-left: 70rpx;
	}

	.unipopup {
		height: 480rpx;
		width: 480rpx;
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		border-radius: 24rpx;

		image {
			width: 174rpx;
			height: 187rpx;
		}
	}

	.tag {
		width: 100rpx;
		height: 28rpx;
		flex: 1;
		text-align: center;
		background: linear-gradient(90deg, #FFE2AE 0%, #E3B97F 100%);
		border-radius: 4rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #492A00;
		line-height: 28rpx;
		float: right;
		margin-left: 10rpx;
	}

	.search-block {
		display: flex;
		flex-direction: row;
		padding-left: 35upx;
		position: relative;
	}

	.search-ico-wapper {
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0upx 0upx 0upx 40upx;
		border-bottom-left-radius: 18px;
		border-top-left-radius: 18px;
	}
	
	.buttomafrim {
		width: 400rpx;
		height: 80rpx;
		background: #0DA944;
		border-radius: 40rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 80rpx;
		text-align: center;
		margin-top: 60rpx;
	}

	.search-ico-wapper1 {
		background-color: #FFFFFF;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0upx 40upx 0upx 0upx;
		border-bottom-right-radius: 18px;
		border-top-right-radius: 18px;
	}

	.distance {
		font-size: 22rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #555555;
		height: 18rpx;
		line-height: 18rpx;
		position: absolute;
		top: 196rpx;
		left: 25rpx;
	}

	.shadow {
		width: 638upx;
		height: 60upx;
		border-radius: 18px;
		-moz-box-shadow: 0 0 10px #e6e6e6;
		-webkit-box-shadow: 0 0 10px #e6e6e6;
		box-shadow: 0 0 10px #e6e6e6;
		position: relative;
		top: -90upx;
		left: 60upx;
	}

	.timeoraddress {
		height: 21rpx;
		line-height: 21rpx;
		margin-left: 8rpx;
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		color: #828282;
	}

	.video-content {
		width: 100%;
		height: 256rpx;
		display: flex;
		// padding-left: 80rpx;
		// padding-top: 10rpx;
	}

	.storelist {
		flex: 232rpx;
		padding-left: 32rpx;
		padding-top: 28rpx;

		image {
			width: 200rpx;
			height: 200rpx;
			border-radius: 8rpx;
		}
	}

	.renovation {
		width: 100rpx;
		height: 28rpx;
		flex: 1;
		background: #E8E8E8;
		border-radius: 4rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #9A9A9A;
		line-height: 28rpx;
		text-align: center;
	}

	.online {
		width: 100rpx;
		height: 28rpx;
		flex: 1;
		background: #E3F6E4;
		border-radius: 4rpx;
		font-size: 20rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #0DA944;
		line-height: 28rpx;
		text-align: center;
	}

	.video-describe {
		display: inline-block;
		vertical-align: top;
		width: 380rpx;
		padding-top: 28rpx;
		padding-left: 15rpx;
	}

	.buttomopendoor1 {
		width: 400rpx;
		height: 80rpx;
		background: #E3F6E4;
		border: 1px solid #B8E6BA;
		border-radius: 40rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #0DA944;
		line-height: 80rpx;
		text-align: center;
		margin-top: 60rpx;
	}

	.buttomopendoor2 {
		width: 400rpx;
		height: 80rpx;
		background: #0DA944;
		border-radius: 40rpx;
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 80rpx;
		text-align: center;
		margin-top: 24rpx;
	}
	
	.welcome {
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #9A9A9A;
	}

	.righticon {
		color: #0DA944;
		margin-top: 33rpx;
		margin-left: 10rpx;
	}

	.right {
		width: 130rpx;
		position: relative;
	}

	.video-list {
		width: 100%;
		height: auto;
		box-sizing: border-box;
	}

	.video-tit {
		height: 64rpx;
		line-height: 64rpx;
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #1A1A1A;
		display: inline-block;
		vertical-align: top;
		letter-spacing: 2rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.video-reader {
		font-size: 22rpx;
		font-weight: 200;
		color: #666;
		letter-spacing: 2rpx;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		-o-text-overflow: ellipsis;
	}

	.functionDesc {
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #1A1A1A;
		margin-top: 6rpx;
		letter-spacing: 3rpx;
	}
	
	.successtxt {
		font-size: 28rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #000000;
	}
	
	.copyright {
		font-size: 25rpx;
		color: #999999;
		text-align: center;
		bottom: 30rpx;
		left: 0;
		letter-spacing: 2rpx;
		right: 0;
	}
</style>